package com.qijian.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;

/**
 * 服务器资源对象 sys_server
 *
 * @author qijian
 * @date 2023-12-25
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("sys_server_resource")
public class ServerResource extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "${column.columnComment}")
    private Long id;

    @Excel(name = "系统")
    @ApiModelProperty(value = "系统")
    private String systemName;

    @Excel(name = "环境")
    @ApiModelProperty(value = "环境")
    private String env;


    @Excel(name = "ip/详情")
    @ApiModelProperty(value = "ip/详情")
    private String ip;

    @Excel(name = "服务器归属")
    @ApiModelProperty(value = "服务器归属")
    private String serverBelong;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "服务器到期时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "服务器到期时间")
    private Date serverExpirationTime;

    @Excel(name = "过期预警")
    @ApiModelProperty(value = "过期预警")
    private String warnRemainingDay;

    @Excel(name = "预警等级")
    @ApiModelProperty(value = "预警等级")
    private String warnLevel;

    @Excel(name = "低级预警阈值")
    @ApiModelProperty(value = "低级预警阈值")
    private Long lowWarnValue;

    @Excel(name = "低级预警频次")
    @ApiModelProperty(value = "低级预警频次")
    private Long lowWarnTimes;

    @Excel(name = "中级预警阈值")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "中级预警阈值")
    private Long middleWarnValue;

    @Excel(name = "中级预警频次")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "中级预警频次")
    private Long middleWarnTimes;

    @Excel(name = "高级预警阈值")
    @ApiModelProperty(value = "高级预警阈值")
    private Long highWarnValue;

    @Excel(name = "高级预警频次")
    @ApiModelProperty(value = "高级预警频次")
    private Long highWarnTimes;

    @Excel(name = "提醒人邮箱")
    @ApiModelProperty(value = "提醒人邮箱")
    private String reminderMail;

    @Excel(name = "提醒人短信")
    @ApiModelProperty(value = "提醒人短信")
    private String reminderPhone;

    @Excel(name = "备注")
    @ApiModelProperty(value = "备注")
    private String remark;

}
